<?php
    /**
     * Created by PhpStorm.
     * User: zgh
     * Date: 2021-08-06
     * Time: 11:20
     */

    namespace app\api\controller;


    use app\api\service\AdvService;
    use app\common\controller\ApiController;
    use hg\apidoc\annotation as Apidoc;
    use app\common\Annotation\ApiControllerAnnotation;
    use think\facade\Request;

    /**
     * @ApiControllerAnnotation(auth=0)
     * @Apidoc\Title("广告模块")
     * @Apidoc\Group("base")
     * @package app\api\controller
     */
    class AdvController extends ApiController
    {
        /**
         * @Apidoc\Title("广告列表")
         * @Apidoc\Url("adv/get_list")
         * @Apidoc\Param(ref="app\api\apidoc\AdvDoc\get_list")
         * @Apidoc\Returned(ref="app\api\apidoc\AdvDoc\get_list")
         */
        public function get_list()
        {
            $result_data = AdvService::getList(Request::param());
            return success_json_response($result_data);
        }


    }